const mutations={
  putUser(state,user){
    state.user=user.userName
    state.password=user.passWord
    let date =new Date;
    let hour=parseInt(date.getHours()) <10?'0'+date.getHours():date.getHours()
    let minutes=parseInt(date.getMinutes())<10?'0'+date.getMinutes():date.getMinutes()
    let seconds=parseInt(date.getSeconds())<10?'0'+date.getSeconds():date.getSeconds()
    let time =date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()+"   "+hour+":"+minutes+":"+seconds
    state.time=time
  }
}
export default mutations